# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models
import django.utils.timezone


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='BkMiniWeixinUser',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('openid', models.CharField(unique=True, max_length=128, verbose_name='\u5fae\u4fe1\u7528\u6237\u5e94\u7528\u552f\u4e00\u6807\u8bc6')),
                ('nickname', models.CharField(max_length=127, verbose_name='\u6635\u79f0', blank=True)),
                ('gender', models.CharField(max_length=15, verbose_name='\u6027\u522b', blank=True)),
                ('country', models.CharField(max_length=63, verbose_name='\u56fd\u5bb6', blank=True)),
                ('province', models.CharField(max_length=63, verbose_name='\u7701\u4efd', blank=True)),
                ('city', models.CharField(max_length=63, verbose_name='\u57ce\u5e02', blank=True)),
                ('avatar_url', models.CharField(max_length=255, verbose_name='\u5934\u50cf', blank=True)),
                ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='\u52a0\u5165\u65f6\u95f4')),
            ],
            options={
                'db_table': 'bk_mini_weixin_user',
                'verbose_name': '\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7528\u6237',
                'verbose_name_plural': '\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7528\u6237',
            },
        ),
        migrations.CreateModel(
            name='BkMiniWeiXinUserSession',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('openid', models.CharField(unique=True, max_length=255, verbose_name='\u5fae\u4fe1\u7528\u6237\u5e94\u7528\u552f\u4e00\u6807\u8bc6')),
                ('session_key', models.CharField(max_length=255, verbose_name='\u5fae\u4fe1\u767b\u5f55\u540e\u83b7\u53d6\u7684\u5bf9\u5e94\u4f1a\u8bdd\u5bc6\u94a5')),
                ('bktoken', models.CharField(unique=True, max_length=255, verbose_name='\u767b\u5f55\u751f\u6210\u7684Token')),
                ('expires_date', models.DateTimeField(verbose_name='\u5931\u6548\u65f6\u95f4')),
            ],
            options={
                'db_table': 'bk_mini_weixin_user_session',
                'verbose_name': '\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7528\u6237Session',
                'verbose_name_plural': '\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7528\u6237Session',
            },
        ),
    ]
